<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<p>Test HEAD</p>
<script type="text/javascript">
alert(document.getElementsByTagName('head').length);
</script>
</body>
</html>